package com.project.controller;

import com.project.bean.ThemeBean;
import com.project.service.IThemeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author lyl
 * description:主要板块controller
 */
@RestController
@RequestMapping("theme")
public class ThemeController {
    @Autowired
    private IThemeService iThemeService;

    @RequestMapping("showAllTheme")
    public List<ThemeBean> showAllTheme() {
        return iThemeService.showAllTheme();
    }


}
